vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals (https://vborg.vbsupport.ru/showthread.php?t=43194)

Logician 01-23-2004 01:57 PM

Quote:

Originally Posted by Kerr
Ok, call me dumb...LOL I am new to VB. BTW....love love love this hack....*hits install*...

How do I find out what my Usergroup ID numbers are???

If you right click Edit USergroup link and open in a new window you will see its usergroup id in the URL like:
http://......../usergroup.php?s=&act...&usergroupid=4

Kerr 01-23-2004 03:18 PM

oK....got a few more quick questions...

Why does it show the link to my image and not my image??? (code below)

What is the correct way to add <br> and <center> to my message? I cant get those to parse correctly they just keep showing up as is instead of doing what I want LOL.

Heres the code as is now......

[[($bbuserinfo[userid]>0)]][i m g]http://www.exoticpethaven.com/vb/images/announcementpic.jpg[/img]
We would like to welcome all our new members to our permanent home!
We hope you enjoy yourself here and stick around for a long time.
We all look forward to making some great friends.
We would like to thank everyone for their patience while we upgrade and add some great things that we all can enjoy.
Please know that over the next few weeks off and on we will be down for small periods of time due to the addition of a few things here and there. Enjoy your stay....see you in the forums!
Sincerely, The EPH Admins and Mods.
[[/($bbuserinfo[userid]>0)]]

The [img] tag of course is not spaced I did that so you could see the code. On my site it just shows the link.

Ok...fixed the problem with the pic not showing...it had to do with general settings of my board nothing with your hack (as I figured :))

Now...I just cant get anything to center....Is there another way to do ...in a nother file? I am still stumped on that one. Thanks for any help you can give me.

Logician 01-24-2004 09:01 AM

If you have problems displaying HTML/smilie/bbcode in your announcement, make this tiny change in hack code (which is in STEP 2):

Find:
PHP Code:

$matches14[2]=bbcodeparse(trim($matches14[2])); 

Replace it as:
PHP Code:

$matches14[2]= bbcodeparse2(trim($matches14[2]),1,1,1,1); 

This will fix your problem..

klaattu 03-01-2004 11:35 PM

One quick question:

I have already put images and everything, it works perfectly .

Is there a way in which I can for example make a folder and put 10 images inside and make a conditional so the hack pulls a random one from the folder and put it in the announcemnets hack?

that would make me very happy

Logician 03-02-2004 06:30 AM

Quote:

Originally Posted by klaattu
Is there a way in which I can for example make a folder and put 10 images inside and make a conditional so the hack pulls a random one from the folder and put it in the announcemnets hack?

nope

ctsolutions 03-12-2004 05:55 PM

<font color="DarkOrange">Absoluetly brilliant hack</font>

Thanks,

CtSolutions

kira 04-23-2004 11:41 PM

As always, this is a wonderful hack, Logician! I've actually used it for a while, but only now got around to re-adding it to my upgraded forum.

Quick question about the fix code posted in #205. Is there an extra space in the replacement line?

Quote:

Originally Posted by Logician
Find:
PHP Code:

$matches14[2]=bbcodeparse(trim($matches14[2])); 

Replace it as:
PHP Code:

$matches14[2]= bbcodeparse2(trim($matches14[2]),1,1,1,1); 


My functions.php stopped working when I used the above replacement code.

Instead, what worked for me was:

PHP Code:

$matches14[2]=bbcodeparse2(trim($matches14[2]),1,1,1,1); 

Dunno if it's just me, but anyway, I thought it might help anyone who had the same problem. :) Thanks again for the great work, Logician!

Logician 04-24-2004 06:59 AM

Quote:

Originally Posted by kira
Instead, what worked for me was:

PHP Code:

$matches14[2]=bbcodeparse2(trim($matches14[2]),1,1,1,1); 


Thx for sharing it Kira but it really can not matter :) These 2 lines have the same meaning in PHP so you can have a space or not. I guess your problem was something else and you accidenly fixed it while adding the space ;)

Symbian.info 09-16-2004 04:18 PM

How can U uninstall it from the Admin CP? I allready use it no more because I have V 3.03 but it stills standing in Admin CP. So how can I delete that??

Logician 09-16-2004 04:52 PM

Quote:

Originally Posted by Symbian.info
How can U uninstall it from the Admin CP? I allready use it no more because I have V 3.03 but it stills standing in Admin CP. So how can I delete that??

They are harmless there if you removed the hack from the code but if you like to delete them anyway, follow instructions here:
https://vborg.vbsupport.ru/showpost....&postcount=199

Symbian.info 09-16-2004 05:27 PM

Thanks that works.. Angain I learn something!! Great..
Sorry was cleaning up some junk left over after the update van v2. to v3. long time a go..


All times are GMT. The time now is 03:20 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01337 seconds
  • Memory Usage 1,759KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete