phpBB-TweakS
 
Advanced Search
   
 
Home Downloads FAQ Register FAQ Memberlist Usergroups Ranks
 
 

Please help us to develop!

 
It appears you are using a browser that is not based on Internet Explorer, this means you are not viewing the web as good as you should be. Other browsers might try to immitate Internet Explorer, but none can parse the web as it should like Internet Explorer can. So view the web as it was meant to be with Avant Browser!
         

phpBB-TweakS Forum Index New Requests Per user image disable?
Display posts from previous:   
Half Thread Topic  Fully Thread Topic  Download Topic
      All times are GMT - 5 Hours  
Post new topic  Reply to topic

Sat Sep 10, 2005 5:35 am
Author Message
Carter
Amature TweakeR
Amature TweakeR


Joined: 10 Sep 2005
Posts: 11
Words Posted: 3,304
Average Post: 300.36


Post subject: Per user image disable? Reply with quote

Hi, I'm hoping that someone can point me to (or possibly write up) a very simple option like the Per User Avatar/Sig Disable - except I'd like it to work for images in posts. In other words, I'd like to allow users to decide whether they can see images in posts or not. For our 56K users, this would make a huge difference.

I know this is a feature of the Profile Control Panel, but the Profile Control Panel is a huge hack that ruins a lot of other hacks. I'm just looking for this one feature. Please help! Surprised
Post #1
      Back To Top  

Sat Sep 10, 2005 8:42 pm
Author Message
aUsTiN
Webmaster
Webmaster


Usa Georgia

Joined: 05 Jan 2005
Posts: 3684
Words Posted: 144,671
Average Post: 39.27

Location: USA

Post subject: Reply with quote

I havnt seen one off hand, but i dont think it would be to hard to build.
Post #2
      Back To Top  

Tue Sep 13, 2005 8:29 pm
Author Message
Carter
Amature TweakeR
Amature TweakeR


Joined: 10 Sep 2005
Posts: 11
Words Posted: 3,304
Average Post: 300.36


Post subject: Reply with quote

Sweet! Thanks Austin.

It seems like an obvious hack, right? I searched and searched for a hack to do that but couldn't find anything. I guess that one came out a long time ago but I can't find it now. It'd be really great if oen could be produced now. Smile
Post #3
      Back To Top  

Tue Sep 13, 2005 9:03 pm
Author Message
Spinebuster
Support Team
Support Team


Joined: 21 Jan 2005
Posts: 413
Words Posted: 25,498
Average Post: 61.74


Post subject: Reply with quote

Here is one, but you might have to add to it to do away with the images in posts.

http://www.*.com/download/1285
Post #4
      Back To Top  

Tue Sep 13, 2005 9:03 pm
Author Message
Spinebuster
Support Team
Support Team


Joined: 21 Jan 2005
Posts: 413
Words Posted: 25,498
Average Post: 61.74


Post subject: Reply with quote

rofl.... Laughing
Post #5
      Back To Top  

Thu Sep 15, 2005 2:30 am
Author Message
Cool DragonMaster Cool
Site Supporter
Site Supporter


Joined: 11 Jan 2005
Posts: 373
Words Posted: 36,703
Average Post: 98.40

Location: USA

Post subject: Reply with quote

I saw this one that might help:

This hack will adds an ignore button below each post, clicking it will allow a user to turn off both the avatar and signature of another user on an individual basis. An unignore button will take it's place allowing the user to reverse the ignore selection.

http://www.*.com/download/4488
Post #6
      Back To Top  

Sat Sep 17, 2005 12:11 am
Author Message
Carter
Amature TweakeR
Amature TweakeR


Joined: 10 Sep 2005
Posts: 11
Words Posted: 3,304
Average Post: 300.36


Post subject: Reply with quote

Spinebuster wrote:
Here is one, but you might have to add to it to do away with the images in posts.

http://www.*.com/download/1285

Not the same thing as what I'm asking - I already have this installed and it works well.

But what I'm looking for is a hack to limit images in posts, not avatars or signatures. You can still see large images posted using the IMG tag with per user av/sig disable.
Post #7
      Back To Top  

Sat Oct 08, 2005 12:56 am
Author Message
Carter
Amature TweakeR
Amature TweakeR


Joined: 10 Sep 2005
Posts: 11
Words Posted: 3,304
Average Post: 300.36


Post subject: Reply with quote

Any chance this might be doable? Very Happy
Post #8
      Back To Top  

Tue Nov 08, 2005 6:16 am
Author Message
Carter
Amature TweakeR
Amature TweakeR


Joined: 10 Sep 2005
Posts: 11
Words Posted: 3,304
Average Post: 300.36


Post subject: Reply with quote

Wow, after like a billion years, I finally found a version of this that works, but it's got some features on it I would like to change if possible and I was hoping someone would be able to help me.

Right now this hack will leave images on for guests, and only turn off all images on the board if you are logged in and under your profile there will be an option called "Show Images in Posts?" - if you select "No" from your profile images will be turned off. Unfortunatly, "No" is selected by default.

What I'd like to change is have "Yes" selected by default instead of "No".

Can someone help me with this? I only understand PHP on the most basic levels. Do I need to change the database default?

Here's the hack:

Code:
###############################################
## Hack Title: Images and links mod
## Hack Version: 1.0.2
## Author: Retorq
## Description:
## Controls images being shown as images or links in the forum topics
## Every user can set options in their profile, or admins can do so for users (in the ACP).
## NEW: Also at the top of each topic there is a link to bypass the users settings for that one topic for that one time.
##
## Options currently possible:
## - Images: yes / link (no)
##
## This is extremely handy for people accessing your forum with a modem,
## low resolution screens or the viewing of questionalbe forum topics at work.
## This has been retested and is fully working with mixed links and all possible post/image variations in a post.
##
## Compatibility:
## 2.0.6 (although with some minor searching you should be able to make it work on prior versions)
##
## Installation Level:
## Moderate
## Installation Time:
## 10 - 15 minutes
## Files To Edit: 9
## viewtopic.php
## admin/admin_users.php
## includes/usercp_avatar.php
## includes/usercp_register.php
## includes/usercp_viewprofile.php
## language/lang_english/lang_main.php
## templates/subSilver/admin/user_edit_body.tpl
## templates/subSilver/profile_add_body.tpl
## NEW: templates/subSilver/viewtopic_body.tpl
##
## History:
## 1.0.2: Third release, revised some of the code in the viewtopic.php file, added link for bypass.
## 1.0.1: Second release, fixed spelling errors, and added helpful text for users
## 1.0.0: First official release
##
## Author Notes:
## You'll notice this mod uses the same layout / naming convention as "Freakin' Booty"'s Dis(Allow) Sig and Avatar mod.
## To me, all three of these go hand in hand to give the user the ultimate control over the "content" of the forums being displayed.
## Note that disabling images does not "break" sigs, avatars, or smileys (like Invision).
## Many thanks to JKeats for pointing out "issues" in the original code and for his bypass and IMAGE LINK ideas.
##
## Support:
## http://www.digitalhijinx.com
##
## Copyright:
## ©2003 Images as links mod 1.0.2 - Retorq
##
###############################################


#
#-----[ DATABASE UPDATES ]--------------------------------
# If your pbpbb_users table is labeld differently please make that change below
# You can paste this into your MYSQL Control Center app, you do have that prog don't you??
# I have not tested this with any other DB formats, I can not imagine much modification would be needed
ALTER TABLE (phpbb_users) ADD COLUMN user_ou_img tinyint(1) DEFAULT 0;

#
#-----[ OPEN ]--------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]--------------------------------------------
#
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------
#
$view_pics=$HTTP_GET_VARS['view_pics'];

#
#-----[ FIND ]--------------------------------------------
#
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
WHERE p.topic_id = $topic_id

#
#-----[ INLINE, FIND ]------------------------------------
#
p.*,

#
#-----[ BEFORE, ADD ]--------------------------------------
#
u.user_ou_img,


#
#-----[ FIND ]--------------------------------------------
#
//
// Parse message and/or sig for BBCode if reqd
//

#
#-----[ BEFORE, ADD ]------------------------------------
#
//
// Images as links mod
//
if (( $userdata['session_logged_in'] ) && ($userdata['user_ou_img'] == 0) && (preg_match("#gif|jp[e]?g#is", $message) && $view_pics != 1) )
{
$message = preg_replace('#\[img:.*?\]#is', " ", $message);
$message = preg_replace('#\[/img:.*?\]#is', " ", $message);
$message = ereg_replace("[[:alpha:]]+://[  ;^<>[:space:]]+(gif|jp[e]?g)  ;", "<a href=\"\\0\" target=new>IMAGE ATTACHED</a>", $message);
}

#
#-----[ FIND ]--------------------------------------------
#
'L_VIEW_NEXT_TOPIC' => $lang['View_next_topic'],
'L_VIEW_PREVIOUS_TOPIC' => $lang['View_previous_topic'],
#
#-----[ BEFORE, ADD ]------------------------------------
#
'L_VIEW_ALL_IMAGES' => $lang['View_all_images'],

#
#-----[ OPEN ]--------------------------------------------
#
admin/admin_users.php

#
#-----[ FIND ]--------------------------------------------
#
$popuppm = ( isset( $HTTP_POST_VARS['popup_pm']) ) ? ( ( $HTTP_POST_VARS['popup_pm'] ) ? TRUE : 0 ) : TRUE;

#
#-----[ AFTER, ADD ]--------------------------------------
#
$user_ou_img = ( isset($HTTP_POST_VARS['user_ou_img']) ) ? intval( $HTTP_POST_VARS['user_ou_img'] ) : 1;

#
#-----[ FIND ]--------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_gender = $gender, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql . ", user_birthday = $birthday, user_next_birthday_greeting=$next_birthday_greeting
WHERE user_id = $user_id";

#
#-----[ INLINE, FIND ]------------------------------------
#
, user_popup_pm = $popuppm

#
#-----[ AFTER, ADD ]--------------------------------------
#
, user_ou_img = $user_ou_img

#
#-----[ FIND ]--------------------------------------------
#
$popuppm = $this_userdata['user_popup_pm'];

#
#-----[ AFTER, ADD ]--------------------------------------
#
$user_ou_img = $this_userdata['user_ou_img'];


#
#-----[ FIND ]--------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="popup_pm" value="' . $popuppm . '" />';

#
#-----[ AFTER, ADD ]--------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="user_ou_img" value="' . $user_ou_img . '" />';

#
#-----[ FIND ]--------------------------------------------
#
'POPUP_PM_NO' => (!$popuppm) ? 'checked="checked"' : '',

#
#-----[ AFTER, ADD ]--------------------------------------
#
'ALWAYS_ALLOW_IMAGES_YES' => ( $user_ou_img ) ? 'checked="checked"' : '',
'ALWAYS_ALLOW_IMAGES_NO' => ( !$user_ou_img ) ? 'checked="checked"' : '',

#
#-----[ FIND ]--------------------------------------------
#

'L_POPUP_ON_PRIVMSG' => $lang['Popup_on_privmsg'],

#
#-----[ AFTER, ADD ]--------------------------------------
#

'L_ALWAYS_ALLOW_IMAGES' => $lang['Always_allow_images'],
'L_NO_IMAGES' => $lang['No_images'],

#
#-----[ OPEN ]--------------------------------------------
#
includes/usercp_avatar.php

#
#-----[ FIND ]--------------------------------------------
#
function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popuppm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat)

#
#-----[ INLINE, FIND ]------------------------------------
#
)

#
#-----[ BEFORE, ADD ]-------------------------------------
#
, &$user_ou_img

#
#-----[ FIND ]--------------------------------------------
#
$params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'cur_password', 'new_password', 'password_confirm', 'icq', 'aim', 'msn', 'yim', 'website', 'location', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'popuppm', 'notifyreply', 'attachsig', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'dateformat');

#
#-----[ INLINE, FIND ]------------------------------------
#
);

#
#-----[ BEFORE, ADD ]-------------------------------------
#
, 'user_ou_img'

#
#-----[ OPEN ]--------------------------------------------
#
includes/usercp_register.php

#
#-----[ FIND ]--------------------------------------------
#
$popup_pm = ( isset($HTTP_POST_VARS['popup_pm']) ) ? ( ($HTTP_POST_VARS['popup_pm']) ? TRUE : 0 ) : TRUE;

#
#-----[ AFTER, ADD ]--------------------------------------
#
$user_ou_img = ( isset($HTTP_POST_VARS['user_ou_img']) ) ? intval( $HTTP_POST_VARS['user_ou_img'] ) : 1;

#
#-----[ FIND ]--------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "
WHERE user_id = $user_id";

#
#-----[ INLINE, FIND ]------------------------------------
#
, user_popup_pm = $popup_pm

#
#-----[ AFTER, ADD ]--------------------------------------
#
, user_ou_img = $user_ou_img

#
#-----[ FIND ]--------------------------------------------
#
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";

#
#-----[ INLINE, FIND ]------------------------------------
#
, user_popup_pm

#
#-----[ AFTER, ADD ]--------------------------------------
#
, user_ou_img

#
#-----[ INLINE, FIND ]------------------------------------
#
, $popup_pm

#
#-----[ AFTER, ADD ]--------------------------------------
#
, $user_ou_img

#
#-----[ FIND ]--------------------------------------------
#
$popup_pm = $userdata['user_popup_pm'];

#
#-----[ AFTER, ADD ]--------------------------------------
#
$user_ou_img = $userdata['user_ou_img'];

#
#-----[ FIND ]--------------------------------------------
#
display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popuppm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat);

#
#-----[ INLINE, FIND ]------------------------------------
#
);

#
#-----[ BEFORE, ADD ]-------------------------------------
#
, $user_ou_img

#
#-----[ FIND ]--------------------------------------------
#
'POPUP_PM_NO' => ( !$popup_pm ) ? 'checked="checked"' : '',

#
#-----[ AFTER, ADD ]--------------------------------------
#
'ALWAYS_ALLOW_IMAGES_YES' => ( $user_ou_img ) ? 'checked="checked"' : '',
'ALWAYS_ALLOW_IMAGES_NO' => ( !$user_ou_img ) ? 'checked="checked"' : '',

#
#-----[ FIND ]--------------------------------------------
#
'L_POPUP_ON_PRIVMSG_EXPLAIN' => $lang['Popup_on_privmsg_explain'],

#
#-----[ AFTER, ADD ]--------------------------------------
#
'L_ALWAYS_ALLOW_IMAGES' => $lang['Always_allow_images'],
'L_NO_IMAGES' => $lang['No_images'],

#
#-----[ OPEN ]--------------------------------------------
#
# Make sure to edit this file for every language installed
#
language/lang_english/lang_main.php

#
#-----[ FIND ]--------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------

#
#-----[ BEFORE, ADD ]-------------------------------------
#
//
// Images as links mod
//
$lang['Always_allow_images'] = 'Allow images in posts';
$lang['No_images'] = 'No, display images as links';
$lang['View_all_images'] = 'View all images in this topic';



#
#-----[ OPEN ]--------------------------------------------
#
# Make sure to edit this file for every template installed
#
templates/subSilver/admin/user_edit_body.tpl

#
#-----[ FIND ]--------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_ALWAYS_ALLOW_SMILIES}</span&g t;</td>
<td class="row2">
<input type="radio" name="allowsmilies" value="1" {ALWAYS_ALLOW_SMILIES_YES} />
<span class="gen">{L_YES}</span> & nbsp;
<input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} />
<span class="gen">{L_NO}</span></td>
</tr>

#
#-----[ AFTER, ADD ]--------------------------------------
#

<tr>
<td class="row1"><span class="gen">{L_ALWAYS_ALLOW_IMAGES}</span>  ;</td>
<td class="row2"><span class="gen"><input type="radio" name="user_ou_img" value="1" {ALWAYS_ALLOW_IMAGES_YES} />{L_YES}    <input type="radio" name="user_ou_img" value="0" {ALWAYS_ALLOW_IMAGES_NO} />{L_NO_IMAGES}</span></td>
</tr>

#
#-----[ OPEN ]--------------------------------------------
#
# Make sure to edit this file for every template installed
#
templates/subSilver/profile_add_body.tpl

#
#-----[ FIND ]--------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_ALWAYS_ALLOW_SMILIES}:</s pan></td>
<td class="row2">
<input type="radio" name="allowsmilies" value="1" {ALWAYS_ALLOW_SMILIES_YES} />
<span class="gen">{L_YES}</span> & nbsp;
<input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} />
<span class="gen">{L_NO}</span></td>
</tr>

#
#-----[ AFTER, ADD ]--------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_ALWAYS_ALLOW_IMAGES}:</sp an></td>
<td class="row2">
<input type="radio" name="user_ou_img" value="1" {ALWAYS_ALLOW_IMAGES_YES} />
<span class="gen">{L_YES}</span> & nbsp;
<input type="radio" name="user_ou_img" value="0" {ALWAYS_ALLOW_IMAGES_NO} />
<span class="gen">{L_NO_IMAGES}</span></td&g t;
</tr>


#
#-----[ OPEN ]--------------------------------------------
#
# Make sure to edit this file for every template installed
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]--------------------------------------------
#
<td class="catHead" colspan="2" height="28"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a>  </span></td>

#
#-----[ REPLACE WITH ]--------------------------------------
#
<td class="catHead" colspan="2" height="28"><span class="nav"><a class="nav" href="{U_VIEW_TOPIC}&view_pics=1">{L_V IEW_ALL_IMAGES}</a> :: <a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a>  </span></td>

#
#-----[ SAVE & CLOSE ALL FILES ]--------------------------


I managed to make it so that you had to be logged in to get the images to display as URLs by adding the session_logged_in stuff in viewtopic, but I dont know what to change to get the default for users to read "Yes" instead of "no" on viewing images.

Help! Smile
Post #9
      Back To Top  

Tue Nov 08, 2005 6:05 pm
Author Message
Spinebuster
Support Team
Support Team


Joined: 21 Jan 2005
Posts: 413
Words Posted: 25,498
Average Post: 61.74


Post subject: Reply with quote

Try doing this. In the sql command, change the Default to 1 instead of 0.
Code:
ALTER TABLE (phpbb_users) ADD COLUMN user_ou_img tinyint(1) DEFAULT 1;
Post #10
      Back To Top  

Tue Nov 08, 2005 7:17 pm
Author Message
Carter
Amature TweakeR
Amature TweakeR


Joined: 10 Sep 2005
Posts: 11
Words Posted: 3,304
Average Post: 300.36


Post subject: Reply with quote

Sweet, that works, and was also what I thinking needed to be done. Gracias!
Post #11
      Back To Top  

Tue Nov 08, 2005 7:20 pm
Author Message
Spinebuster
Support Team
Support Team


Joined: 21 Jan 2005
Posts: 413
Words Posted: 25,498
Average Post: 61.74


Post subject: Reply with quote

No problemo amigo!
Post #12
      Back To Top  

 
         

Post new topic  Reply to topic

phpBB-TweakS Forum Index New Requests Per user image disable?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


      Back To Top  

Page 1 of 1
Jump to:  
 
Protected by phpBB Security © phpBB-TweakS
phpBB Security Has Blocked 3,237 Exploit Attempts.

· Archive · Sitemap: Index · Sitemap: Forums · Sitemap: Topics · Sitemap: Posts ·

:: [ Load Time: 2.8 Seconds ] :: [ 29 Queries ] :: [ 4,681 Page(s) Viewed Today ] ::
:: [ Todays Queries: 140,687 ] :: [ Highest Load: 1,396,429 Queries On May. 08, 2007 ] ::
:: [ SQL Load: 60% Time: 1.7 ] :: [ PHP Load: 40% Time: 1.1 ] :: [ Debug: On ] :: [ GZIP: Enabled ] ::
:: The server last rebooted 81 days, 9 hours, 5 minutes, 49 seconds ago. ::

The phpBB[Network]!
       
Powered by phpBB 2.0.* © 2001, 2002 phpBB Group
Avalanche style by What Is Real © 2004