vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   check the current page (https://vborg.vbsupport.ru/showthread.php?t=312441)

Madamko 06-26-2014 09:42 AM

check the current page
 
Hello,

How can I check if user has open list of articles or concrete article?
(user can click on Articles in main menu and then choose from one of several articles on my web)

Should I check current url? Or is there any other more elegant way? For example any vbulletin variables?

for example :
list of articles (previews) has url: name_of_my_forum/articles
or: name_of_my_forum/articles/category

concrete article: name_of_my_forum/articles/category/1-test-article

Thanks in advance.

Dead Eddie 06-26-2014 12:14 PM

From where would you like to check? For what purpose?

Madamko 06-26-2014 02:00 PM

I guess template would be best option.
I have absolutely another design for cms sections of my web. That's why I need to change unique identificators of elements. After that I would be able to write custom css for articles section.

I found out that "previews" and concrete article have almost same structure. And all changes of article mixed up my article preview list. That was my problem :) And that's why I need to distinguish somehow these pages.

Dead Eddie 06-28-2014 11:24 PM

After a quick look, I didn't see anything. Looks like using the URL might be your best bet.

Madamko 07-02-2014 10:08 AM

Thanks! :) It is working now


All times are GMT. The time now is 01:33 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.01038 seconds
  • Memory Usage 1,710KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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