Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Chris] Rate My Photo (HorOrNot Clone) Details »»
[Chris] Rate My Photo (HorOrNot Clone)
Version: 1.0.0, by Christos Teriakis Christos Teriakis is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Portal Software - Version: 4.2.0 Rating:
Released: 10-26-2012 Last Update: Never Installs: 14
DB Changes Uses Plugins Auto-Templates
Additional Files Is in Beta Stage  
No support by the author.

Rate My Photo (Hot or Not Clone)
by ChrisTERiS

IMPORTANT
This is NOT a Gallery addon. It focuses only to photo rating and not to photo presentation


Please note that from
11 Aug 2013
you can get support only in my site
http://www.teriakis.com


Today is my birthday and as the time that I was celebrating the has passed, I decided to release an addon that I had somewhere in my HD. Is not the "killer" addon, but works fine, and as I know there is no other similar addon available.

1.- Installation
  1. Upload all files from upload folder to the folder where your vBulletin 4.2 is installed
  2. CMOD 777 the directories
    1. ratemyphoto/photos
    2. ratemyphoto/photos/thumbs
  3. Login to your admincp and import the file product-ratemyphoto.xml
  4. Set Usergroup permissions
  5. Set General Options according to your needs
  6. If you want modify PM templates but don't touch anything betwee {}
  7. Set the Categories
2.- Requiremenets
  1. Installed and fully operating vBulletin
  2. vBulletin version 4.2
  3. Does NOT works with vBulletin 5 Connect
3.- Copyright Link

In all pages there is my copyright link back to my site. Removing it, or making it invisible is strictly prohibited.

4.- PRO version

During the first week of November 2012, I'll release a commercial (PRO) version with more features and without copyright link in a low price.

Enjoy it
Christos Teriakis

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 12-17-2012, 11:23 AM
macroforum macroforum is offline
 
Join Date: Mar 2010
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and nominated, works perfect for me!
One question: wich features has commercial version ?
I would lightbox or similar effects
Thanks
Antonio
Reply With Quote
  #43  
Old 12-18-2012, 12:34 AM
tounet's Avatar
tounet tounet is offline
 
Join Date: May 2007
Location: Algeria
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChrisTERiS View Post
If you want a specific one, tell me what exactly do you want to show, and I'll give you the code to build it. I don't use to build predefinied widgets/blocks, but rather I'm including my own block generator which can produce many types of them according to your needs, and furthure more to auto install them in your system.

Chris
I want to show the best picture on the sidebar of forumhome soon as I can get the code for widgets/blocks
Reply With Quote
  #44  
Old 01-01-2013, 11:49 AM
tounet's Avatar
tounet tounet is offline
 
Join Date: May 2007
Location: Algeria
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I edit the php file with the following code ratemyphoto

PHP Code:
<?php 

global $vbulletin;
 
// Setup PHP Enviropment
    
error_reporting(E_ALL & ~E_NOTICE);
    
// Define Contants
    
define('THIS_SCRIPT''ratemyphoto');
    
define('GET_EDIT_TEMPLATES''add,edit');
    
// Cache Templates & Variables
    // get special phrase groups
    
$phrasegroups = array(
        
'ratemyphoto',
        
'postbit',
        
'posting'
    
);
    
$specialtemplates = array(
        
'smiliecache',
        
'bbcodecache',
        
'attachmentcache',
    );
// Best Photo
  
$globaltemplates = array(
        
'block-photo',
        
'bbcode_code',
        
'bbcode_html',
        
'bbcode_php',
        
'bbcode_quote',
        
'editor_toolbar_on'
    
);
// Include Globals
    
require_once('./global.php');
    require_once(
'./includes/functions_editor.php');
    require_once(
'./includes/functions_newpost.php');
    require_once(
'./includes/functions_user.php');
    require_once(
'./includes/class_bbcode.php');
    require_once(
'./includes/class_image.php');
    require_once(
'./includes/functions_bigthree.php');
    require_once(
'./includes/class_dm.php');
    require_once(
'./includes/class_dm_pm.php');
    require_once(
'./ratemyphoto/includes/functions.php');
    require_once(
'./includes/class_bootstrap_framework.php');
    
vB_Bootstrap_Framework::init();
    
    
$bestphoto =$vbulletin->db->query_first("SELECT * FROM vb_ratemyphoto_photos WHERE approved=1 AND hidden=0 AND rating>0 ORDER BY rating DESC, votes DESC LIMIT 1");
    
$besttitle htmlspecialchars_uni($bestphoto["title"]);
    
$bestphotoname $bestphoto["logo"];
    
$bestvotes $bestphoto["votes"];
    
$bestrating $bestphoto["rating"];
        
$templater vB_Template::create('block-photo');
        
$templater->register_page_templates();
    
$templater->register('besttitle'$besttitle);
    
$templater->register('bestphotoname'$bestphotoname);
        
print_output ($templater->render());
?>
This will display the best picture.

and I'm writing a new template block-photo

HTML Code:
<div class="block smaller">
	<div class="blocksubhead">
		<span class="blocktitle">
			<vb:if condition="$catid == 0">
				{vb:var vbphrase.ratemyphoto_best_overall}
			<vb:else />
				{vb:var vbphrase.ratemyphoto_best_category}
			</vb:if>
		</span>
	</div>
	<div class="widget_content blockbody floatcontainer">
		<div class="blockrow" align="center">
			<img border="0" src="ratemyphoto/photos/thumbs/{vb:raw bestphotoname}"><br />
			{vb:raw besttitle}<br />
			{vb:var vbphrase.ratemyphoto_by}: <a href="member.php?u={vb:raw bestuserid}&tab=ratemyphoto#ratemyphoto">{vb:raw bestusername}</a><br />
			{vb:var vbphrase.ratemyphoto_votes}: <b>{vb:raw bestvotes}</b><br />
			{vb:var vbphrase.ratemyphoto_rating}: <b>{vb:raw bestrating}</b>
		</div>
	</div>
</div>	
<div class="underblock"></div>
I created a block for my sidebare but the image does not appear, or it appears alone overwriting any forum
Reply With Quote
  #45  
Old 01-02-2013, 06:47 PM
tounet's Avatar
tounet tounet is offline
 
Join Date: May 2007
Location: Algeria
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you want to display the home page ratemyphoto with highslide effects change the following template: ratemyphoto_newest_photos by :

HTML Code:
<script type="text/javascript" src="http://www.yoursite.com/forum/highslide/highslide-with-gallery.js"></script>
<link rel="stylesheet" type="text/css" href="http://www.yoursite.com/forum/highslide/highslide.css" />
<script type="text/javascript"> 
hs.graphicsDir = 'http://www.yoursite.com/forum/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
hs.numberPosition = 'caption';
hs.dimmingOpacity = 0.75;
 
// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: .75,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});
</script>
<div class="highslide-gallery">

<td class="blockrow" >
<a id="thumb1" href="ratemyphoto/photos/{vb:raw newestphotoname}" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 1 } )">

	<img src="ratemyphoto/photos/thumbs/{vb:raw newestphotoname}" alt="{vb:raw newestphotoname}"
		title="Click pour agrandir la photo."  /></a><br/>
	{vb:raw newesttitle}<br />
	{vb:var vbphrase.ratemyphoto_by}: <a href="member.php?u={vb:raw newestuserid}&tab=ratemyphoto#ratemyphoto">{vb:raw newestusername}</a><br />
	{vb:var vbphrase.ratemyphoto_in}: <a href="ratemyphoto.php?do=main&catid={vb:raw newestcatid}">{vb:raw newestcategory}</a><br />
	{vb:var vbphrase.ratemyphoto_votes}: <b>{vb:raw newestvotes}</b><br/>
	{vb:var vbphrase.ratemyphoto_rating}: <b>{vb:raw newestrating}</b>

</td>
</div>
do not forget to create a directory that contains the files highslide:
  1. highslide-with-gallery.js
  2. highslide.css
  3. subdirectory graphics

download it in highslide site her

Attachment 143154 Attachment 143155
enjoy!
Reply With Quote
  #46  
Old 05-09-2013, 04:06 PM
Tyran1 Tyran1 is offline
 
Join Date: Jan 2007
Location: Deutsches Reich
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version for 3.8.7??
Reply With Quote
  #47  
Old 08-11-2013, 05:16 PM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please note that from 11 Aug 2013 you can get support only in my site
http://www.teriakis.com
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06558 seconds
  • Memory Usage 2,299KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete