Previous Thread
Next Thread
Print Thread
Rate Thread
#190663 03/20/2002 6:25 PM
Joined: Nov 2001
Posts: 159
Member
Member
Offline
Joined: Nov 2001
Posts: 159
but how can i change the number of images allowed in a post? I tried to install the image limit hack from 6.0 but there are lines in the vars_display.cig part of it that do not exsist.

Sponsored Links
#190664 03/20/2002 7:54 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
quote:
Originally posted by DragonSoul:
but how can i change the number of images allowed in a post? I tried to install the image limit hack from 6.0 but there are lines in the vars_display.cig part of it that do not exsist.

DragonSoul,

I'm 99.9% positive the only way you may change the number of images allowed in a post is with that one hack.

Sometimes when you hack a file, you have to look around for the code--especially if you've added other hacks.

What I do is try to do is use a piece of the code that is "unique" to that particular step. In many instances, it's a trial and error process to find that "unique" area.

Then, when I do, I examine where the code began and where it ends for that particular section--and compare it to the code I'm trying to replace.

If info has been changed--and it's due to known hacks, I know that's the area I should be replacing.

A word of caution, though. Sometimes instead of "replacing," I insert code. Why? So that I don't lose the hacks I've already done.

I hope that makes sense. laugh


Sue
adwoff.com
#190665 03/20/2002 9:09 PM
Joined: Nov 2001
Posts: 159
Member
Member
Offline
Joined: Nov 2001
Posts: 159
thats just it, there is nothing unique at all in the codes. not one single word is the same. here i will give you my vars and then what the script says to change in it.

My vars
-------------------------------------------------
%vars_display = (
'ShowPrivacyLink' => 'ON',
'AllowSignatureImage' => 'YES',
'ForumDisplayMax' => 25,
'NewestMemberWelcome' => 'yes',
'AllowSignature' => 'YES',
'YourCopyrightNotice' => 'All images, wording and docs. are property of the original creator. Collective Souls will not be responsible for copying of these files and reuse of them. If you would like to use someone's idea, please get permission from them first.',
'showcopytype' => 'text',
'PrintTopic' => 'yes',
'PrivacyURL' => '',
'EmailBlock' => 'OFF',
'InlineFrame' => 'TRUE',
'forum_intro' => 'Welcome to "Collective Souls" gaming community.',
'ContactURL' => '[email protected]',
'HotCount' => 15,
'PopupHeight' => 300,
'MembersOnlyAccess' => 'NO',
'user_ratings' => 'off',
'BBEmail' => '[email protected]',
'DaysPruneDefault' => 10,
'masterCharset' => 'ISO-8859-1',
'ForumDescriptions' => 'yes',
'ForumTotalOption' => 'Both',
'homepage_icon_link' => 'yes',
'HomePageURL' => 'http://www.csouls.com/cgi-bin/ultimatebb.cgi',
'MyHomePage' => 'My Homepage',
'CategoryView' => 'yes',
'RequireLoginPosts' => 'YES',
'PopupWidth' => 550,
'HotIcons' => 'ON',
'HTMLDisplayMax' => 25,
'author_location' => 'yes',
'author_reg_date' => 'yes',
'ShowMods' => 'no',
'author_post_total' => 'yes',
'ReverseThreads' => 'FALSE',
'DisplayMemberTotal' => 'true',
'CategoriesOnly' => 'false',
'ContactLinkType' => 'Email',
'PreviewPost' => 'yes',
'AllowIcons' => 'TRUE'
);

1;

script
-------------------------------------------------

********************************
* Open vars_display.cgi
********************************

**FIND >>
***NOTE: This line MAY be different from the following, depending on your setting for number
***of replies to count as a HOT TOPIC!!! Check your Hot Topic settings to verify! In my case I
***have 10 set as a hot topic.***

&RegField("Minimum Number of Replies to Qualify as Hot Topic", "HotCount", "", "2", "3", "Leave blank if you are not using Hot Topics.", "$vars_display{HotCount}");

**ADD THIS BELOW >>

&RegField("Number of images allowed per post", "ImgLimit", "yes", "2", "2", "This is the allowed limit of images in one post.", "$vars_display{ImgLimit}");

#190666 03/20/2002 11:43 PM
Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
Ummmmm, did you look in the 6.2 finished Mods? Image Limit hack is there. Also the 6.2 beta forum has a 2nd page, due to a bug in 6.2.2 its not showing up, go here to get to it:

https://ubbdev.com/ubb/ultimatebb.php?ubb=forum;f=33;hardset=365;start_point=40

#190667 03/21/2002 6:59 AM
Joined: Jul 2000
Posts: 837
Member
Member
Offline
Joined: Jul 2000
Posts: 837
DragonSoul

in

vars_display.cgi

find**

'HotCount' => 15,

Add after**

'ImgLimit' => 8,

Sponsored Links
#190668 03/21/2002 7:00 AM
Joined: Jul 2000
Posts: 837
Member
Member
Offline
Joined: Jul 2000
Posts: 837
if you got the text file i am thinking of the one i made a mistake on you will need to do this as well.

[code][/code]


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)