View Full Version : Question Help plz
brave24
04-25-2009, 06:28 PM
plz i wanna ask if i want to increase viewing to one section in forum what i should do
for ex :
vBulletin Announcements (18 Viewing)
if i wanna make this lie report and make it 100 viewing as default and begin increase auto after 100 as default . and if i want do this in some sections and some not what i should do to edit that ?
thx
Lynne
04-25-2009, 06:49 PM
The template is probably "forumhome_forumbit_level2_post". You can either do what is in this article (with a condition around your line to increase the number), Perform simple calculations inside templates! (https://vborg.vbsupport.ru/showthread.php?t=188930) , or you can write a plugin to increase the variable "$forum[browsers]" just for that forum.
brave24
04-25-2009, 08:13 PM
plz some eay tut
if i go to this template forumhome_forumbit_level2_post
then what i should search about in it ? then what i type if i want to increase viweing in section number 1 for example and where i put my code exactly ?
plz give easy steps i appricate ur help . or let me know about easy plugin coz i canot know how doing this
thx
Lynne
04-25-2009, 08:36 PM
I told you the variable to look at. Just hook into forumbit_display with (change x to your forumid):
if ($forum['forumid'] == 'x')
{
$forum['browsers'] += 100;
$show['browsers'] = ($vbulletin->options['displayloggedin'] AND !$forum['link'] AND $forum['browsers'] ? true : false);
}Not tested. You may have to play with it a bit.
brave24
04-25-2009, 11:57 PM
when i try to put the code u give for me in template forumhome_forumbit_level2_post
i get this error
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/____/public_html/vb/includes/adminfunctions_template.php(3938) : eval()'d code on line 1
and i have vb 3.8.1
in the template forumhome_forumbit_level2_post
the code related to viewing i think in the template when i search word browser is :
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if
so what i should do ?
Lynne
04-26-2009, 02:50 AM
I didn't say to put it into the template. I said to hook into forumbit_display - that means create a plugin using the forumbit_display hook location. It's an easier method than doing the calculation in the template.
(If you aren't familiar with writing plugins, read the manual regarding products/plugins.)
brave24
04-26-2009, 09:30 AM
yes sir working great thx for help very much
i already did this with one section in my forums . so i ask if i want to do this in another section
i will need to add again new plugin hook and change x by secion id ?
so every time i will need to add new hook?
thx
Sweeks
04-26-2009, 11:42 AM
yes sir working great thx for help very much
i already did this with one section in my forums . so i ask if i want to do this in another section
i will need to add again new plugin hook and change x by secion id ?
so every time i will need to add new hook?
thx
Sounds right yes
________
Extreme Q (http://extremevaporizer.info)
Lynne
04-26-2009, 02:44 PM
You can repeat the code in the same hook - no need to create a new hook for each forum.
brave24
04-26-2009, 09:28 PM
<font color="Magenta">thx very much bro lynee i appricate ur help .
i have another question same about Inferno vBShout 2.5.0
if i want ' Active Users ' begin from 6 when no one chatting in chat box or posting new threads , so the default begin from 6 . so if no one posting or speaking in chat box appear
Active Users: 6
thx very much and wait ur reply bro
</font>
Lynne
04-26-2009, 10:30 PM
Questions regarding modifications need to be asked in the modification thread. That is where the support is offered. (I have no idea what the code for that modification is like.)
brave24
04-26-2009, 11:18 PM
Questions regarding modifications need to be asked in the modification thread. That is where the support is offered. (I have no idea what the code for that modification is like.)
where is modification section link
or u can move my reply to this section coz i canot find where is ?
tipoboy
04-26-2009, 11:26 PM
do a search for "inferno" in "all Mods" "titles only" and you should find it :D
Lynne
04-26-2009, 11:29 PM
If you clicked Installed on the modification, then you can find the mod under User CP > Installed Modifications. If not, you will have to search for it. I have no idea what mod you installed.
brave24
04-27-2009, 12:47 AM
i already post it there
https://vborg.vbsupport.ru/showthread.php?t=147346
and hope if any one can give me help too plz . or just try do this and if sucess with him tell me
thx anyway
tipoboy
04-27-2009, 12:50 AM
its unlikely you'll get help in that thread as the OP is long gone and support hasnt been given in a long time, you'll either have to "request" someone to help you in the paid services section or try to figure it out yourself :D
brave24
04-27-2009, 01:52 PM
its unlikely you'll get help in that thread as the OP is long gone and support hasnt been given in a long time, you'll either have to "request" someone to help you in the paid services section or try to figure it out yourself :D
give me link for paid section :)
i,m sure almost know this but wanna get this by paid :)
so let me know the link of paid discussion :)
Lynne
04-27-2009, 01:55 PM
Requests For Paid Services (https://vborg.vbsupport.ru/forumdisplay.php?f=30)
Read the notices at the top of the forum first.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.