vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to create a custom sticky thread? (https://vborg.vbsupport.ru/showthread.php?t=197812)

Penicillin 12-02-2008 10:23 AM

How to create a custom sticky thread?
 
Hello
I'd like to create a custom sticky thread showing in ALL my forums.
When a user clicks on that thread's title, it directs him to a specific html or php page.

Can I do that?
Thanks

Distance 12-02-2008 10:44 AM

Hey,

If you're an Administrator you could do this by posting a global announcement, as long as you are able to use HTML, you would use the following code;

HTML Code:

<a href="URL HERE">Click here if you're not automatically redirected</a>
<meta http-equiv="refresh" content="0;url=URL HERE">

Basically, this displays a link if the users browser is unable to support auto-refresh and the next line automatically redirects the page.

All you need to do is replace the two URL HERE with the link you wish to redirect to. :)

Penicillin 12-02-2008 11:15 AM

I have many forums, it's hard to post an announcemenet each forum.
Is there an easier solution by editing the style?

Distance 12-03-2008 07:45 AM

As I said, if you are an Administrator you can create a global announcement.

This is done by going into your Admincp -> Announcements -> Post New Announcement

'All Forums' should already be selected, so no template edits should be necessary. :)

Penicillin 12-03-2008 12:23 PM

I appreciate your help.
OK, another question: what if I want to place Adsense script so the ad shows in the title of the announcement or thread?

Distance 12-04-2008 10:32 AM

Why would you want to show adsense in the title of the announcement ? This would distort the page.

Penicillin 12-05-2008 08:18 PM

Quote:

Originally Posted by Distance (Post 1678359)
Why would you want to show adsense in the title of the announcement ? This would distort the page.

I really appreciate your reply.
No, it doesn't.
Just one sticky thread each forum showing an adsense ad in its title.

ssslippy 12-06-2008 02:32 AM

Then use the ad header

Penicillin 12-08-2008 10:32 PM

Quote:

Originally Posted by ssslippy (Post 1679418)
Then use the ad header

What should I write in the header?


All times are GMT. The time now is 07:00 AM.

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.01080 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete