News:

Join the Facebook Fan Page.

Main Menu

Crowns

Started by Bulakbol, May 02, 2009, 12:24:26 PM

Previous topic - Next topic

arockets

That'd be nice, I like that idea.

Bulakbol

This will work only if you install the Membergroup LegendII mod and this mod. Sources/BoardIndex.php.
Version 2.0 RC1-1.
SELECT online_color, group_name, id_group
Code (replace) Select
SELECT online_color, group_name, id_group, crown

Version 1.1.9
Code (find) Select
SELECT onlineColor, groupName, ID_GROUP
Code (replace) Select
SELECT onlineColor, groupName, ID_GROUP, crown

Both version.
Code (find) Select
'id' => $row['id_group'],
Code (add after) Select
'crown' => empty($row['crown']) ? '' : '<img src="' . $settings['images_url'] . '/' . $row['crown'] . '" alt="" />',

Code (find) Select
$context['membergroups'][] = $context['mc_legend'][$i]['link'];
Code (replace) Select
$context['membergroups'][] = $context['mc_legend'][$i]['crown'] . $context['mc_legend'][$i]['link'];
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Sevgiformu.com

Separating the package on the construction of teacher language

arockets

Quote from: Bulakbol on June 29, 2009, 07:14:02 PM
This will work only if you install the Membergroup LegendII mod and this mod. Sources/BoardIndex.php.
Version 2.0 RC1-1.
SELECT online_color, group_name, id_group
Code (replace) Select
SELECT online_color, group_name, id_group, crown

Version 1.1.9
Code (find) Select
SELECT onlineColor, groupName, ID_GROUP
Code (replace) Select
SELECT onlineColor, groupName, ID_GROUP, crown

Both version.
Code (find) Select
'id' => $row['id_group'],
Code (add after) Select
'crown' => empty($row['crown']) ? '' : '<img src="' . $settings['images_url'] . '/' . $row['crown'] . '" alt="" />',

Code (find) Select
$context['membergroups'][] = $context['mc_legend'][$i]['link'];
Code (replace) Select
$context['membergroups'][] = $context['mc_legend'][$i]['crown'] . $context['mc_legend'][$i]['link'];

So In order for me to show the crowns in the legend, you need to insatll MCLegndII and modify the code with the above?  Just making sure :)

Bulakbol

@Php Coder Turkish
Thanks for the translation. Type it for me and post here because my keyboard does not have special character keys.

@arockets
Yes of course. Both should be installed to make the edit work.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Danpotter

1.     Execute Modification     ./Sources/ManageMembergroups.php     Test successful
2.    Execute Modification    ./Sources/ModSettings.php    Test failed
3.    Execute Modification    ./Sources/Load.php    Test failed
4.    Execute Modification    ./Sources/Subs.php    Test successful
5.    Execute Modification    ./Sources/MessageIndex.php    Test successful
6.    Execute Modification    ./Sources/BoardIndex.php    Test successful
7.    Execute Modification    ./Themes/default/ManageMembergroups.template.php    Test successful
8.    Execute Modification    ./Themes/default/index.template.php    Test successful
9.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
10.    Execute Modification    ./Themes/default/Display.template.php    Test successful
11.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
12.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
13.    Execute Modification    ./Themes/default/Memberlist.template.php    Test successful
14.    Execute Modification    ./Themes/default/Who.template.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
18.    Extract File    ./Themes/default/images/starblue.gif    
19.    Extract File    ./Themes/default/images/stargreen.gif    
20.    Extract File    ./Themes/default/images/stargray.gif    
21.    Extract File    ./Themes/default/images/starpink.gif    
22.    Extract File    ./Themes/default/images/starpurple.gif    
23.    Extract File    ./Themes/default/images/starred.gif    
24.    Extract File    ./Themes/default/images/starteal.gif    
25.    Extract File    ./Themes/default/images/shadow.gif    
26.    Execute Code    installdb1.php    

help please....

evolution25

i keep getting a error with   
Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.







Parse error: syntax error, unexpected '&' in .../Themes/default/index.template.php on line 257

248:

   

   

<ul id="greeting_section" class="titlebg2">
249:

   

   

   

<li id="time" class="smalltext floatright">
250:

   

   

   

   

' , $context['current_time'], '
251:

   

   

   

   

<a href="#" onclick="mainHeader.toggle(); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" align="bottom" /></a>
252:

   

   

   

</li>';
253:
254:

   

if ($context['user']['is_logged'])
255:

   

   

echo '
256:

   

   

   

  <li id="name">', !empty($context['user']['group_item']['crown']) && empty($modSettings['hide_index_page']) ? $context['user']['group_item']['crown'] : $txt['hello_member_ndt']. ' ', '<em', !empty($context['user']['group_item']['color']) && empty($modSettings['hide_index_page']) ?

257:

   

   

   

   

(' style="color: '. $context['user']['group_item']['color']. ';">') : '>', $context['user']['name'] , '</em></li>'; &raquo; <span style="font-size: 80%; padding: 3px;" id="update_personal_text">', !empty($context['user']['personal_text']) ? $context['user']['personal_text'] : $txt['ajax_personal_text_none'], '</span>

258:

   

   

   

   

   

<script language="JavaScript" type="text/javascript"><!-- // -->
259:

   

   

   

   

   

   

// Ajaxify that personal text!
260:

   

   

   

   

   

   

if (typeof(window.XMLHttpRequest) != "undefined")
261:

   

   

   

   

   

   

{

Bulakbol

@Danpotter
Attach the files that failed the test and I'll try to find what the problem is.

@evolution25
Quote from: evolution25 on July 13, 2009, 04:34:36 PM
257:
(' style="color: '. $context['user']['group_item']['color']. ';">') : '>', $context['user']['name'] , '</em></li>'; &raquo; <span style="font-size: 80%; padding: 3px;" id="update_personal_text">', !empty($context['user']['personal_text']) ? $context['user']['personal_text'] : $txt['ajax_personal_text_none'], '</span>
wow, lots of linebreaks. There's another mod that modified the same line and this mod wasn't installed properly by the look of it.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

evolution25

here is index.template.php
says 2 because i copy one from a diff theme in same folder

Chamaeleon

Nice mod, thank you   :)

Bulakbol

Quote from: evolution25 on July 15, 2009, 07:34:33 PM
here is index.template.php
says 2 because i copy one from a diff theme in same folder
What is the other mod that modified your index.template.php? It is using javascript and I am not familar with. I will try to halp you but no guarantee tho.

@Chamaeleon
Thanks for the kind words.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Ozan-forum

I dont see anywhere in the Crown thing where it says enable to posts or something? i cant make crown left to my name in a post and the name color is black in a post normally it should be red as i wrote that in?
-any help?

Bulakbol

@Ozan-forum
Go to Admin => Features and Options => Crown. You can see all the settings there. Did you install manually? Are you using custom theme?
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Naveeddil

Great Mod ad i seen the SS but
unfortunately i have SMF 1.1.10 and it give TEST FAILED on following files
.
.
Sources/ModSettings.php
Sources/Load.php
Themes/default/index.template.php
Themes/default/MessageIndex.template.php

Any Help Please

Bulakbol

@Naveeddil
Other mods you installed probably changed the same code so you have to do the edits manually.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Naveeddil

HEllo Dear
in Manual Upgradation i got the following error

I'm unable to find the Code following code in file Themes/default/index.template.php
<span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'] , '</b></span>
To replace with
<span style="font-size: 130%;">', !empty($context['user']['group_item']['crown']) && empty($modSettings['hide_index_page']) ? $context['user']['group_item']['crown'] : $txt['hello_member_ndt']. ' ', '<b', !empty($context['user']['group_item']['color']) && empty($modSettings['hide_index_page']) ?
(' style="color: '. $context['user']['group_item']['color']. ';">') : '> ', $context['user']['name'] , '</b></span>



Second....

I'm unable to find code at /Themes/default/MessageIndex.template.php
<td class="windowbg2" valign="middle" width="14%">


to replace with
<td class="windowbg2" valign="middle" width="14%"><span style="float: left;">', !empty($topic['first_post']['member']['group_item']['crown']) && !empty($modSettings['topic_started_by']) ? $topic['first_post']['member']['group_item']['crown'] : '', '</span>


I'm also attaching both files for reference
PLEASE HELP

Bulakbol

@Naveeddil
Your files were altered by another mod(s) and replaced the code with something else. If your forum does not generate errors after installing this mod, maybe you can ignore the missing code. If you will edit your files manually, your other installed mods will fail un-install.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Acans

Quote from: Bulakbol on August 29, 2009, 08:53:40 PM
@Naveeddil
Your files were altered by another mod(s) and replaced the code with something else. If your forum does not generate errors after installing this mod, maybe you can ignore the missing code. If you will edit your files manually, your other installed mods will fail un-install.

So their is no way to install crowns now because i have installed member color link and now i cant find that code that needs to be edited as well.
"The Book of Arantor, 17:3-5
  And I said unto him, thy database query shalt always be sent by the messenger of $smcFunc
  And $smcFunc shall protect you against injections and evil
  And so it came to pass that mysql_query was declared deprecated and even though he says he is not
  dead yet, the time was soon to come to pass when mysql_query shall be gone and no more

iTanq

It doesn't show up on the topic page for me, how can I enable that?

meehan09

Installed and seems to be working fine.


Theres one adjustment id like to ask.

Is it possible to have the icons in recent posts?

Has when i view recent posts its not showing any icon next to there names?

It works everywhere else just not recent posts?, Can anyone help me and explain how i go about adding this.


Regards

Advertisement: