Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - CerealGuy
31
Plugin Support / Wedge way to add Profile Field
« on October 3rd, 2014, 03:23 PM »
In the moment im working on a plugin which should show how many likes the user recieved and gave on his Profile.
In the invitemod plugin i did it with add_js, but thats in my opinion not a really good way. Wouldnt it a good thing to have some 'custom_field' hook?
Or is there another better way?
32
Bug reports / Shorten Subjects in Stats
« on September 26th, 2014, 07:43 PM »
Shortening subjects in Stats would be good, otherwise it looks crappy with long names.
Something around 35 Letters should be good.
33
Archived fixes / Input #userspec
« on September 26th, 2014, 07:24 PM »
Needs a "width: 100%", otherwise it's too big.
Tested on Firefox & Chrome (latest Ubuntu version).
34
Bug reports / Collapse Forum
« on September 26th, 2014, 03:27 PM »
First hiding a forum would be better if it's done by ajax and just fire a GET request to the collapse action.
And the collapse action does not show thoughts and recent posts. Also Home.template.php doesnt get runned.
35
Features / [Hook] Custom Fields
« on August 18th, 2014, 05:34 PM »
I think a hook for adding custom fields would be a good thing. Adding the field with JS is a way but not a nice one.
I would suggest something like that:

call_hook('load_custom_fields', array($memID, $area, &$context['custom_fields'])); (Profile.php)

EDIT: No more need for, we have mods.xml
36
Archived fixes / Search ignores specific boards
« on August 3rd, 2014, 10:06 PM »
It looks like the search ignores the "Search in specific boards" option. It always searchs in all boards.
37
Plugin Support / Adding collumn with mediumtext as type
« on June 22nd, 2014, 10:29 PM »
I'm trying to create a collumn with mediumtext as type via plugin-info.xml.
First the plugin-info.xml:
Code: [Select]
<database>
<tables>
<table if-exists="update" name="{db_prefix}text">
<columns>
<column name="id" autoincrement="yes" type="mediumint" unsigned="yes" />
<column name="test" type="mediumtext" size="255" />
</columns>
<index type="primary">
<field>id</field>
<field>test</field>

</index>
</table>

</tables>
</database>

Error
Code: [Select]
BLOB/TEXT column 'test' used in key specification without a key length
Datei: /home/oqcchckd/public_html/wedge/core/app/Class-DBHelper.php
Zeile: 339

CREATE TABLE wedge_text
(
`id` mediumint(8) unsigned NOT NULL auto_increment,
`test` mediumtext NOT NULL,
PRIMARY KEY (id,test)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci

First thought its a problem with the mysql server but tried it on a different host, same error. How do i define the key length and shouldn't be there default values and/or the size parameter used?

Thanks in advance

EDIT: Problem found :D For some reasons its not good to make it primary, related to mysql ^^ Perhaps it helps people with the same problem :D
38
Bug reports / Advanced Options for Permissions not working
« on June 21st, 2014, 01:24 AM »
The advanced options in managing Permissions doesn't work or for me it doesnt change anything (perhaps i dont understand how its working but in the moment it looks like a bug :lol:).
Thats bad because i cant add Permissions to a group :wow:

Im using the latest rev.
39
Archived fixes / 'ViewRemote' not found or invalid function name
« on June 18th, 2014, 11:00 AM »
Code: [Select]
http://localhost:8080/wedge/index.php?action=viewremote;filename=latest-news.js
Kann den "main" Template block nicht finden.

Code: [Select]
http://localhost:8080/wedge/index.php?action=viewremote;filename=latest-news.js
2: call_user_func() expects parameter 1 to be a valid callback, function 'ViewRemote' not found or invalid function name
Datei: /var/www/wedge/index.php

Only appears sometimes, not sure when exactly :niark: Perhaps someone else has an idea?!
40
Archived fixes / Some bugs with allow_guestAccess
« on May 30th, 2014, 11:52 PM »
Found some bugs with allow_guestAccess set to false.
They all appear when the user is a guest.

#1
Guests can not switch the skin, because 'skin' is not an allowed action (index.php).
Fix:
Change
Code: [Select]
elseif (empty($settings['allow_guestAccess']) && we::$is_guest && (empty($action) || !in_array($action, array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'verification'))))

to
Code: [Select]
elseif (empty($settings['allow_guestAccess']) && we::$is_guest && (empty($action) || !in_array($action, array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'verification', 'skin'))))

#2 Guest sees a searchbox, but he needs to be registered to search, therefore an ugly frame appears. I think the best is to just disable the searchbox for guests when allow_guestAccess is false.

#3 Same for the quick access sidebar element.

https://github.com/C3realGuy/wedge/commit/49b250e9c18c54a6a6e3a05aed33383b0cf37f10
41
Archived fixes / Install error get_preferred_language()
« on May 30th, 2014, 06:16 PM »
Its connected to dfa1bdffa35693773fb1199fc108d1046336375c.
Problem is that get_preferred_language got moved to we::.
Installation fails because of this.

EDIT:
In Class-System.php change
Code: [Select]
private static function get_preferred_language($language)

to

Code: [Select]
public static function get_preferred_language($language)

and in install.php

Code: [Select]
$lang = get_preferred_language();

to

Code: [Select]
$lang = we::get_preferred_language();

https://github.com/C3realGuy/wedge/commit/7b1146e5f18fa06fb2010b9e0ff482c5bc29f5a8
43
Archived fixes / Logo Bug
« on May 4th, 2014, 06:23 PM »
I changed the logo and the result was that home_index was defined as the logo link. And the Home icon broke.

EDIT: Should be fixxed, doesnt appear on the latest commit.
44
Plugin Support / add_js + </ul>
« on April 27th, 2014, 08:50 PM »
I'm having a comic problem while trying to add js code with an "</ul>" in it (its connected to InviteMod but broke it a bit down to make it easier to understand).

Example1:
Code: [Select]
add_js(&quot;alert(\&quot;&lt;ul&gt;\&quot;);&quot;);
This one works as it should, we have an alert with the message "<ul>"


Example2:
Code: [Select]
add_js(&quot;alert(\&quot;&lt;/ul&gt;\&quot;);&quot;);
This one works not, even if its nearly the same as in Example1.
I dont really know whats going on there but it looks like something deletes stuff after
the </ul> tag.

Code: (html output) [Select]
&lt;script&gt;
...
});alert(&quot;&lt;/ul&gt;
&lt;div id=&quot;junk&quot;&gt;
&lt;strong&gt;Templates&lt;/strong&gt; (5):
...
&lt;/script&gt;
Some more things that i discovered:
- It works when the user is not logged in
- Tested it on multiple hosts, on one it works but on the others not
- Its the same when i add it manually to $context['footer_js'] (perhaps some parse functions doing stuff with it...)

Workarounds:
This one is not really nice but works.
Code: [Select]
print &quot;&lt;script&gt;alert(\&quot;&lt;/ul&gt;\&quot;);&lt;/script&gt;&quot;;

And this one is what made me a bit confused. A simple escape of the / did it. I have no idea why, perhaps someone can explain it to me :D
Code: [Select]
add_js(&quot;alert(\&quot;&lt;\/ul&gt;\&quot;);&quot;);

EDIT: omg... looks like there are some troubles displaying this :D
45
Plugins / [Plugin] InviteMod
« on April 25th, 2014, 04:55 PM »
InviteMod

With this plugin, new users need an Invitekey to register. Those Invitekeys can be generated from already registered Members.
Features:

    Permissions for infinite slots
    User recieves on x posts an invitekey
    Notificationsupport

Installation

    Drop the 'invitemod' directory in your plugins folder.

    Now you have to add the custom hooks. You need to do this after each upgrade/update!

    In /core/app/Register.php
    Search

   loadTemplate('Register');

and add AFTER

   call_hook('register_form_pre', array());

In /core/app/ManagePlugins.php
Search: 'register', and add AFTER:

   
Code: [Select]
     'register_form_pre',

    Activate plugin in acp
    (optional) Configurate the plugin

ToDo

    Better Permissions
    more admin options

FAQ

Ok cool, but dude, what does this Plugin?!

Imagine, you want a more private forum and only People which know someone on the Forum should be able to register.
Or you want that only people you know can register, but they should create their account on there own. Thats possible with
this plugin.

Interesting but tell me some more

Well,  Member can have a dynamic amount of Inviteslots. That amount can increase by writing more than X posts.
Now they have probably 3 Inviteslot and they genereate one Invitekey. After that they would only have 2 Inviteslots anymore.
But they can delete the invitekey and get back the slot. However, if a person registeres with that key it will disappear and the slot would be "lost".

Is it possible to get back a "lost" Inviteslots?

Yes it is, currently there is an option with which you can set that the inviter gets back his inviteslot if the invited user writes X Posts (default 1000).

https://github.com/C3realGuy/we_InviteMod