vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   PhotoPlog: vBa CMPS Thumbs (https://vborg.vbsupport.ru/showthread.php?t=103839)

klaush 12-28-2005 10:25 PM

Quote:

Originally Posted by calorie
Thanks for the thanks. :)

@klaush: is your PhotoPlog directory set to /forum/photoplog in settings?

Yes, it is!

calorie 12-28-2005 10:30 PM

Do you see any part of the block, or nothing at all? What about if you view the HTML source, do you see anything there?

klaush 12-28-2005 10:41 PM

Quote:

Originally Posted by klaush
Yes, it is!

Fixed! My fault!

What must i do to sort 3 or 5 images horizontal?

klaush 12-28-2005 10:45 PM

Quote:

Originally Posted by calorie
Do you see any part of the block, or nothing at all? What about if you view the HTML source, do you see anything there?

Na, i was the stupid guy! You did your job very well!

calorie 12-28-2005 10:57 PM

Ah okay, to change to horizontal, you'd need to edit the photoplog_thumbs.php file, making it similar to the PhotoPlog Forum Home Thumbs plugin.

nitro 12-30-2005 10:00 PM

This works spot on in vbportal after 4 minor changes 5 if you want to make it a horizontal block as per the post above this one.

If your ok with it Calorie I will post the 4 steps and how to call the random thumb script ?

calorie 12-31-2005 06:31 AM

Sure, go for it.

nitro 12-31-2005 11:16 AM

Quick how to make this work in vbportal

open the photoplog_thumbs.php file in an editor &

Code:


Editing the thumbs php file:

1. near the top of the file below the credits add a line

global $permissions;

2. In the php file there are 3 instances of $db-> associated with queries
Change these to $vbulletin->db->

3. @ the bottom of the file comment and add this line or replace the eval line with

//eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('P_photoplog_thumbs') . '";'); \\ Old vba CMS

eval('$p_thumbs = "' . fetch_template('P_photoplog_thumbs') . '";'); \\ New vbportal

Save the file and upload, I suggest a new filename especially if you use both vbportal and vbA
and I suggest placing the file in your photoplog directory.

1. As directed add a new template (for vbportal continuity I suggest)
Template name: P_photoplog_thumbs and place the same content in as Calories instructions

Finally In vbPortal's CP Block layouts add a new php block with Templates set to Yes
Give it the title you desire and save.
Now add this into the content area for the added block, ensure you reflect the path to the thumbs file:

@include(HOMEPATH . '/photoplog/photoplog_thumbs.php');

print $p_thumbs;

This example assumes your photoplog directory is inside your portal directory and the filename did not change.
Save the block again and when you toggle it on for your respective module layouts it should work.
To make it horizontal use the forum thumbs plugin code for layout example and add a center block instead.

I cant say what will work in other portals but this may help as an insight there aswell.

How to is in a code box for the usual licence viewing restrictions.

Any issues just check back to this post as I will likely just update it than spread
vbportal posts throughout this thread.

Step 2 of the file edit (the 3 instance edit) maybe saveable by adding as line 1 of the file or perhaps even as line 1 of the portal block code

Edit: updated this bit as per some more expert advice than mine ;) Still havnt tried the step 2 saver but it should be fine.

Code:

$db = $vbulletin->db;
Dont really have the time to test that bit right now tho as I am about to take the Mrs down to the outlaws. Feel free to experiment with it ;)

Jaynesh 01-03-2006 08:47 AM

Calorie the images arent displaying :S

calorie 01-03-2006 08:23 PM

Check the PhotoPlog permissions in the usergroup manager and look at the HTML source for image tags.


All times are GMT. The time now is 12:45 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.01090 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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